/*
    Project:        Home Power Control
    File:           HPCAlarmValue.h
    Author:         christian@karunamusic.at
    Date:           12.2015
    Description:
 */

#ifndef HPCALARMVALUE_H
#define HPCALARMVALUE_H

#include "HPCValue.h"


class HPCAlarmValue : public HPCValue
{
public:
    /** \brief Constructor.
     */
    HPCAlarmValue();
    /** \brief Constructor.
     *
     * \param val The value as string (char *).
     * \param vt The valuetpe.
     *
     */
    HPCAlarmValue( const char* val, ValueType vt );
    /** \brief Destructor.
     */
    virtual ~HPCAlarmValue();

    inline bool Alarmed() const
        { return m_Alarmed; }
    inline HPCAlarmValue& Alarmed(bool val)
        { m_Alarmed = val; return *this; }

private:
    bool m_Alarmed;
};

#endif // HPCALARMVALUE_H
